/* ============ 分页容器 ============ */

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.pagination-wrapper.pagination-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ============ 分页按钮 ============ */

.pagination-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn,
.pagination-page {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.pagination-btn:hover:not(:disabled),
.pagination-page:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn:disabled {
    background: var(--bg-light);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-page.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    padding: 6px 4px;
    color: var(--text-secondary);
}

/* ============ 分页页码 ============ */

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ 分页信息 ============ */

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pagination-current,
.pagination-total,
.pagination-count {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============ 每页显示数量 ============ */

.pagination-size-changer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-size-select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-size-select:hover {
    border-color: var(--primary-color);
}

.pagination-size-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* ============ 跳转 ============ */

.pagination-jumper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-jumper-input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.pagination-jumper-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.pagination-jumper-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.pagination-jumper-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============ 大小 ============ */

.pagination-small .pagination-btn,
.pagination-small .pagination-page {
    padding: 4px 8px;
    font-size: 12px;
}

.pagination-large .pagination-btn,
.pagination-large .pagination-page {
    padding: 8px 16px;
    font-size: 15px;
}

/* ============ 响应式 ============ */

@media (max-width: 768px) {
    .pagination-wrapper {
        gap: 12px;
        padding: 12px;
    }

    .pagination-container {
        gap: 4px;
    }

    .pagination-btn,
    .pagination-page {
        padding: 5px 10px;
        font-size: 13px;
    }

    .pagination-size-changer,
    .pagination-jumper {
        font-size: 12px;
    }

    .pagination-jumper-input {
        width: 45px;
        padding: 5px 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pagination-container {
        width: 100%;
        justify-content: center;
    }

    .pagination-info,
    .pagination-size-changer,
    .pagination-jumper {
        width: 100%;
        justify-content: center;
    }
}
